import { CHANGE_INPUT_VALUE } from './constants'

export const changeInputValue = (payload) => ({
  type: CHANGE_INPUT_VALUE,
  payload
})

export const setTimeOutChangeInputValue = (payload) => async (dispatch) => {
  setTimeout(() => {
    dispatch({
      type: CHANGE_INPUT_VALUE,
      payload
    })
  }, 2000)
}